package x.cribug.common.entity.app;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import lombok.Data;

import java.util.Date;

@ApiModel("用户")
@Data
public class User {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String openId;
    private Date createTime;
    private Date lastVisitTime;
    private String avatarUrl;
    private String nickName;
    private Integer gender;
    private String city;
    private String email;
    private String country;
    private String province;

    @TableField(exist = false)
    private String token; // 认证令牌，在缓存会话信息的时候生成

}
